
.PHONY: clean

obj-files1 := linkedl.o syncerr.o
obj-files2 := linkedl.o syncgood.o
exec-file1 := test_err
exec-file2 := test_good

CC=gcc
CFLAGS=-Wall

all: $(obj-files1) $(obj-files2)
	$(CC) $(obj-files1) -o $(exec-file1) -lpthread
	$(CC) $(obj-files2) -o $(exec-file2) -lpthread

.o:.c .h
	$(CC) $(CFLAGS) -c $<

clean:
	@rm *.o $(exec-file1) $(exec-file2)
